$(function() {

	MuiAjaxFn("client/userinfo/selectbyallinfo", {}, function(data) {
			if(data.htmlState.status == 200) {
				$("#headImage").css("background-image", "url(" + data.dataResultList[0].headimgurl + ")");
				$(".username").html(data.dataResultList[0].nickName);
				$("#favoritesTotal").html(data.dataResultObj.favoritesTotal);
				$("#recordTotal").html(data.dataResultObj.recordTotal);
			}

		})
		//猜你喜欢
	YouLikeFn();

	$(".orderHref").on("tap", function() {
		window.top.location.href = "Order.html?orderState=" + $(".orderHref").index($(this)) + "&t=" + Date.now();
	});
	
	$("#after_sale").on("tap",function(){
		window.top.location.href = "after_sales.html?t=" + Date.now();;
	})

})

//var orderAll = document.getElementsByClassName('orderHref')[1];
//var orderR = orderAll.getElementsByClassName('rightHr');
//var orderSale = document.getElementById('after_sale');
//for(var i = 0; i < orderR.length; i++) {
//	orderR[i].onclick = function() {
//		window.top.location.href = "Order.html?orderState=" + this.id + "&t=" + Date.now();
//	}
//}
//orderSale.onclick = function() {
//	window.top.location.href = "after_sales.html?t=" + Date.now();;
//}